home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-21 / qwhite.zip / MIDNIGHT.TEC < prev    next >
Text File  |  1992-03-09  |  3KB  |  54 lines

  1. ID:MI Date not changing at 12:00am
  2. Quarterdeck Technical Note #176
  3. by Daniel Travison
  4. Last Revision:  6 February 1992
  5.  
  6. Periodically, a DESQview user who keeps his system on over a 24-hour period
  7. will discover that the system date did not change at midnight.  Although this
  8. might appear to be a problem with DESQview, it is really a problem caused by
  9. an application.  The way DOS determines if the date has rolled over is by
  10. making a call to interrupt 1Ah using function 0.
  11.  
  12. One piece of information returned is the number of times the date has rolled
  13. over since the last time the call was made.  The call ALSO resets the flag
  14. that indicates the date has rolled over to 0.  The problem occurs when an
  15. application makes this call before DOS gets a chance to see the date
  16. rollover.  The flag gets reset to zero and DOS does not change the date.
  17.  
  18. A second problem that can occur is due to a bug in DOS.  DOS considers the
  19. above flag as an indication that the date changed.  Many BIOSes, however, use
  20. this flag to count how many times the date has changed.  If you were to leave
  21. your system running over the weekend and none of the applications running
  22. asked DOS for the date, when you come back to the system Monday morning, the
  23. system date would not be correct.
  24.  
  25.   For example:
  26.  
  27.   When you turn the system on Friday, this flag is set to zero
  28.   Saturday morning, the flag gets set to 1
  29.   Sunday morning, the flag is set to 2
  30.   Monday morning, the flag is set to 3
  31.   Monday morning you type DATE at a DOS prompt, the date will set
  32.   for Saturday instead of Monday.
  33.  
  34. DOS simply checks to see if the flag is not 0, and increments the Date instead
  35. of seeing what the flag's value is and adjusting the date based on that value.
  36.  
  37. The solution to the problem is to run a program that asks DOS for the date.
  38. One of the programs on Quarterdeck's BBS is called DVTIME.COM.  This program
  39. simply asks DOS for the date and time once a second and displays it in a
  40. small DESQview window.  It is written to make use of DESQview's Timer Object
  41. which allows it to have DESQview wake it up, read the time, and go back to
  42. sleep.  This might be just the program you need if you are allowing your
  43. system to run over extended periods of time and experience the above problem.
  44.  
  45. The file you need to download is DVTIME.ZIP.  It contains both the DVTIME.COM
  46. program and the PIF to set it up in DESQview.  Our BBS Number is 310-314-3227.
  47.  
  48.   ************************************************************************
  49.   *This technical note may be copied and distributed freely as long as it*
  50.   *is distributed in its entirety and it is not distributed for profit.  *
  51.   *         Copyright (C) 1990-2 by Quarterdeck Office Systems           *
  52.   ************************ E N D   O F   F I L E *************************
  53.  
  54.